//package com.lyf.learn.atsgg.spring.transaction.config;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.jdbc.datasource.DataSourceTransactionManager;
//import org.springframework.transaction.PlatformTransactionManager;
//import org.springframework.transaction.annotation.EnableTransactionManagement;
//
//import javax.sql.DataSource;
//
///**
// * @AUTHOR LYF
// * @DATE 2022/5/26
// * @VERSION 1.0
// * @DESC
// */
//@EnableTransactionManagement
//@Configuration
//public class TransactionManager {
//    @Autowired
//    DataSource dataSource;
//    @Bean
//    PlatformTransactionManager transactionManager(){
//        DataSourceTransactionManager dataSourceTransactionManager = new DataSourceTransactionManager();
//        dataSourceTransactionManager.setDataSource(dataSource);
//        return dataSourceTransactionManager;
//    }
//
//}
